<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Blog</title>

        {#富文本#}
    <script type="text/javascript"  src="/static/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript">
        tinyMCE.init({
            'mode':'textareas',
            'theme':'advanced',
            'width':600,
            'height':400,
        })
    </script>

</head>

<body>
    <h1>富文本</h1>

    <form method="post" action="/tinymce/">
        {% csrf_token %}
        <input type="text" name="title" value="">
        <hr>
        <textarea name="article" id="tinymceId" cols="30" rows="10"></textarea>
        <hr>
        <input type="submit" value="submit">

    </form>

</body>
</html>